package implementor;


import model.CustomerInfo;
import daoInterfaces.CustomerInfoDao;
import dbhandelling.Crude;

public class CustomerInfoImp extends Crude implements CustomerInfoDao
{

	@Override
	public void add(CustomerInfo cat)throws Exception
	{
		String[] values=new String[6];
		values[0]=cat.getCustomerId()+"";
		values[1]=cat.getName();
		values[2]=cat.getAddress();
		values[3]=cat.getCompany();
		values[4]=cat.getEmailAdr();
		values[5]=cat.getPhoneNo()+"";
		insert("CustomerInfo", values);
		
		
		
	}

	@Override
	public void update(CustomerInfo cat) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(CustomerInfo cat) {
		this.delete("CustomerInfo","customerId", cat.getCustomerId()+"");
		
	}

	@Override
	public CustomerInfo retrieve(String conditionField, String conditionValue) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CustomerInfo[] retrieveArray(String conditionField,
			String conditionValue) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CustomerInfo[] retrieveAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CustomerInfo getLatest() {
		// TODO Auto-generated method stub
		return null;
	}

	
}
